﻿using System;
using System.Linq;
using System.Text;

namespace Xc.DataAccess.Core.Services
{
    /// <summary>
    /// 编码服务接口
    /// </summary>
    public interface IEncodingService
    {
        /// <summary>
        /// 获取指定编码方式
        /// </summary>
        /// <param name="encoding"></param>
        /// <returns></returns>
        Encoding GetEncoding(int encoding);

        /// <summary>
        /// 获取指定编码
        /// </summary>
        /// <param name="encoding"></param>
        /// <returns></returns>
        Encoding GetEncoding(string encoding);

        /// <summary>
        /// 获取GB2312编码
        /// </summary>
        /// <returns></returns>
        Encoding GetGB2312();
    }
}
